﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace MessageSystem.Managed.Infrastructure
{
    [StructLayout(LayoutKind.Sequential)]
    public struct Options
    {
        public UInt32 max_message_size { get; set; }        // 最大消息包大小
        public UInt32 max_msg_cache_size { get; set; }      // 最大消息包内存缓存大小
        public UInt32 max_block_cache_size { get; set; }    // 最大块内存缓存大小

        public static Options Default = new Options() { 
                                                        max_message_size = 32 * 1024,
                                                        max_msg_cache_size = 100 * 1024,
                                                        max_block_cache_size = 50 * 1024 * 1024
                                                       };
    }
}
